package com.tingyuge.base.design.chain;

/**
 * @Created by xiaodao
 *
 */
public abstract  class LeaderHandlerChain {
    protected String name;

    public LeaderHandlerChain(String name) {
        this.name = name;
    }

    public void setNextLeader(LeaderHandlerChain nextLeader) {
        this.nextLeader = nextLeader;
    }

    protected LeaderHandlerChain nextLeader; //责任链下一个要处理的领导


    /**
     * 处理请求的核心方法
     * @param request
     */
    public abstract void  handlerRequest(LeaveRequest request);
}
